﻿namespace D.Domain.SystemDomain.SysUserDomain.Entities
{
    /// <summary>
    /// 用户登录实体
    /// </summary>
    public class SysAdminLoginHistoryEntity : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid? SysAdminId { get; init; }

        /// <summary>
        /// 手机号
        /// </summary>
        public PhoneNumberVo PhoneNumberVo { get; init; }

        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime CreatedDateTime { get; init; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; init; }

        public SysAdminLoginHistoryEntity(Guid? sysAdminId, PhoneNumberVo phoneNumberVo, string message)
        {
            this.SysAdminId = sysAdminId;
            this.PhoneNumberVo = phoneNumberVo;
            this.Message = message;
            this.CreatedDateTime = DateTime.Now;
        }
    }
}
